Availability | 2.0, deprecated in 3.0 in favor of dom.getSelection() . |
Description | Gets the selection in the current document, expressed as byte offsets into the document's HTML source. |
Arguments | None. |
Returns | An array containing two integers. The first integer is the byte offset of the beginning of the selection; the second integer is the byte offset of the end of the selection. If the two numbers are the same, then the current selection is an insertion point. |
![]() |